﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="search.aspx.cs"
    Inherits="chatblog.search" Title="老友故事-搜索" %>

<%@ Register Assembly="RuleCode.Common" Namespace="RuleCode.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="../Stylesheet1.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function selectButtonClick(textboxid)
        {           
            window.open ('../bbs/selectarea.aspx'+'?id='+textboxid,'dd','height=400, width=600, top=100,left=200, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
        }
        function selectButtonClickcata(textboxid)
        {           
            window.open ('../bbs/selbbscata.aspx'+'?id='+textboxid,'dd','height=400, width=600, top=100,left=200, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
        }
        </script>
        <style type="text/css">    
        .style7
        {
            width:92px;
            height:23px;
            background-image:url(../images/userButton3.gif);
            background-position:center;
            background-repeat:no-repeat;
            text-align:center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="width: 100%; height: 100px; ">
        <asp:Literal ID="Literal_logolink" runat="server"></asp:Literal>
        
    </div>
    <div style="width: 100%; height: 50px; background-image: url(../images/menu_bg.gif);
        background-position: top; background-repeat: repeat-x; border-top-color: Gray;
        border-top-width: 1px; border-top-style: solid; border-bottom-color: Gray; border-bottom-width: 1px;
        border-bottom-style: solid;">
        <table style="width: 100%; margin-top: 3px;">
            <tr>
                <td>
                <asp:Panel ID="Panel_area" runat="server">
                    <asp:Button ID="Button_all" runat="server" Text="全部区域" OnClick="Button_all_Click" />
                    <asp:Button ID="Button_bj" runat="server" Text="北京" OnClick="Button_bj_Click" />
                    <asp:Button ID="Button_sh" runat="server" Text="上海" OnClick="Button_sh_Click" />
                    <asp:Button ID="Button_gz" runat="server" Text="广东" OnClick="Button_gz_Click" />
                    <asp:Button ID="Button_qt" runat="server" Text="其他" OnClick="Button_qt_Click" />
                    <asp:Label ID="Label_area" runat="server" Text="当前区域:全部"></asp:Label>
                    </asp:Panel>
                    <asp:HyperLink ID="HyperLink_link" runat="server" NavigateUrl="~/bbs.html">老友故事社区</asp:HyperLink>
                </td>
                <td style="width: 200px;">
                    <%--设置 &nbsp; 我的帖子 &nbsp;我的回帖&nbsp;用户中心&nbsp;搜索&nbsp;查看新帖&nbsp;<br />--%>
                    <%--<asp:Label ID="Label_lastvisit" runat="server" Text="你还未登录,亲登陆."></asp:Label>--%>
                    &nbsp;今日:<asp:Label ID="Label_today" runat="server" Text="0"></asp:Label>, 昨日:<asp:Label
                        ID="Label_yestoday" runat="server" Text="0"></asp:Label>, 总数:<asp:Label ID="Label_sum"
                            runat="server" Text="0"></asp:Label>
                    &nbsp;<%--精华区--%>
                </td>
            </tr>
        </table>
    </div>
    <div >
        <asp:Panel ID="Panel_q" runat="server" Visible="false">
        
    <table><tr>
    <td class="style7">
    <a href="../bbs/selbbscatanew.aspx?id=1">提出问题</a>
    </td>
    <td class="style7">
    <a href="../bbs/dhdwt.aspx">待回答问题</a>
    
    </td>    
    <td class="style7">
    <a href="../bbs/ydwt.aspx">已答问题</a>
    
    </td>    
    <%--<td class="style7">
    <a href="../bbs/selbbscatanew.aspx?id=2">写作笔记</a>
    </td>    
    <td class="style7">
    <a href="../bbs/selbbscatanew.aspx?id=2">我的笔记</a>
    </td>    
    <td class="style7">
    笔记列表
    </td>  --%>  
    <td class="style7">
    <a href="../bbs/jinghua.aspx">精华帖</a>
    </td>    
    <td class="style7">
    <a href="../bbs/search.aspx">全文搜索</a>
    </td>    
    
    </tr></table>
   
    </asp:Panel>
    
    </div>
    <div style="width: 100%;">
        <asp:TextBox ID="TextBox_keyword" runat="server" Width="293px"></asp:TextBox>
        <asp:Button ID="Button_ok"
            runat="server" Text="搜索" onclick="Button_ok_Click" /><br />
        <asp:CheckBox ID="CheckBox_title" runat="server" Text="标题" TextAlign="Left" Checked="True"/> &nbsp;
        <asp:CheckBox ID="CheckBox_desc" runat="server" Text="正文" TextAlign="Left" 
             /> &nbsp;&nbsp;
        <asp:CheckBox ID="CheckBox_return" runat="server" Text="回帖" TextAlign="Left" /> 
        &nbsp; 模块范围:<asp:TextBox ID="TextBox_cata" runat="server" Width="60px"></asp:TextBox>
        <asp:Button ID="Button_selcata" runat="server" Text=".." Width="23px" 
            onclick="Button_selcata_Click" />
    </div>
    <hr />
    <div style="width: 100%;">
    
        <asp:GridView ID="GridView_list" runat="server"  Width="100%"
                            HeaderStyle-Height="26px" HeaderStyle-BorderWidth="0px" HeaderStyle-HorizontalAlign="Left"
                            AutoGenerateColumns="False" CaptionAlign="Top" CellPadding="0" GridLines="None"
                            
             DataKeyNames="RECID" >
            <Columns>
                <asp:TemplateField  ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                     <%#Eval("cblisttype")%>:&nbsp;
                        <a href='<%#ResolveUrl("~/bbsview/") +Eval("cblistid")+".html"%>'>&nbsp;
                            <%#Eval("cbtitle")%></a><%#RuleCode.Table.cblist.jinghualink(Eval("jinghua").ToString())%>&nbsp;
                            
                        
                    </ItemTemplate>
                    <HeaderTemplate>
                                        <div style="width: 100%; height: 26px;  line-height:26px;vertical-align: middle; background-image: url(../images/cat_bg.gif);
                                            background-position: left; background-repeat: no-repeat; background-color: #FF9900;
                                            ">
                                            <span style="font-weight: normal; color: White;">&nbsp;&nbsp;&nbsp;标题</span></div>
                                        </div>
                                    </HeaderTemplate>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-Width="210px"  ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                        <a href='<%#ResolveUrl("~/blog/") +Eval("userrecid")+".html"%>' target="_blank">
                            <%#chatblog.zfunction.getnick(Eval("cbuserid").ToString())%></a> <br />
                        <%#Eval("jccreatedate").ToString()%>
                    </ItemTemplate>
                    <HeaderTemplate>
                    <div style="width: 100%; height: 26px; line-height:26px; vertical-align: middle; background-color: #FF9900;">
                                            <span style="font-weight: normal; color: White;">作者</span></div>
                        
                    </HeaderTemplate>

<ItemStyle Width="210px"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-Width="70px"  ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                        
                        <%#Eval("huifushu").ToString()%>/<%#Eval("chakanshu").ToString()%>
                    </ItemTemplate>
                    <HeaderTemplate>
                    <div style="width: 100%; height: 26px;  line-height:26px;vertical-align: middle; background-color: #FF9900;">
                                            <span style="font-weight: normal; color: White;">回复/查看</span></div>
                         
                    </HeaderTemplate>

<ItemStyle Width="70px"></ItemStyle>
                </asp:TemplateField>
                 <asp:TemplateField ItemStyle-Width="210px"  ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                    <a href='<%#ResolveUrl("~/blog/") +Eval("recid2")+".html"%>' target="_blank">
                       
                            <%#chatblog.zfunction.getnick(Eval("cbuserid2").ToString())%></a> <br />
                        <%#Eval("jccreatedate2").ToString()%>
                    </ItemTemplate>
                    <HeaderTemplate>
                    <div style="width: 100%; height: 26px;  line-height:26px;vertical-align: middle; background-color: #FF9900;">
                                            <span style="font-weight: normal; color: White;">最后回复</span></div>
                       
                    </HeaderTemplate>

<ItemStyle Width="210px"></ItemStyle>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle />
        </asp:GridView>
        <cc1:WebPager ID="WebPager_list" runat="server" 
            ControlToPaginate="GridView_list" PageSize="30" 
            onpageindexchanged="WebPager_list_PageIndexChanged" />
    
    
    </div>
</asp:Content>
